package com.disruptor.sample._01base.consumer;

import com.disruptor.sample.common.dto.LongEvent;
import com.lmax.disruptor.EventHandler;
import lombok.extern.slf4j.Slf4j;

/**
 * 消费者
 */
@Slf4j
public class LongEventHandler implements EventHandler<LongEvent> {

  @Override
  public void onEvent(LongEvent event, long sequence, boolean endOfBatch) {
    log.info("Event: " + event);
  }
}
